package de.sonnentempel.dao;

import java.util.List;

/**
 * DAO-Interface für die Basic-Operationen.
 *
 * @param <Obj> Das Business-Object/Domain Object
 */
public interface BasicDAO<Obj>
{
    
    public Obj save(Obj o) throws Exception;
    
    public Obj getById(Long id) throws Exception;
    
    public Obj update(Obj o) throws Exception;
    
    public void deleteById(Obj o) throws Exception;
    
    public List<Obj> getAll() throws Exception;;
}
